package com.qf.controller;

import com.qf.service.BusinessService;
import com.qf.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    private BusinessService businessService;
    @RequestMapping("/list")
    public ResultData list(@RequestParam HashMap<String, Object> map){
        System.out.println("map = " + map);
        ResultData data = businessService.findAll(map);
        return data;
    }
}
